package com.coocaa.typhoon.api.config;

import org.springframework.boot.web.servlet.MultipartConfigFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.servlet.MultipartConfigElement;

/**
 * @author bijiahao
 * @date : 2025/9/20 02:04
 * @description
 */
@Configuration
public class UploadConfig {
//    @Bean(name = "multipartResolver")
//    public CommonsMultipartResolver commonsMultipartResolver() {
//        CommonsMultipartResolver commonsMultipartResolver = new CommonsMultipartResolver();
//        commonsMultipartResolver.setDefaultEncoding("utf-8");
//        commonsMultipartResolver.setMaxUploadSize(524288000);
//        commonsMultipartResolver.setMaxInMemorySize(40960);
//        return commonsMultipartResolver;
//    }
}
